import { Routes } from '@angular/router';
import { HomeComponent } from '@home/home.component';
import { LOGIN_ROUTES } from './modules/login/login.routes';
import { HOME_ROUTES } from './modules/home/home.routes';

export const routes: Routes = [
  {
    path: '',
    component: HomeComponent,  // 先加载布局
    children: HOME_ROUTES   // 匹配子路由
  },
  
  ...LOGIN_ROUTES,

  {
    path: '**',
    loadComponent: () => import('./modules/home/pages/exception/404/exception-404.component').then(m => m.Exception404Component),
    title: '页面未找到'
  }
];
